 <tr class=th>
    <td colspan=7 class=th>
	  <% total = 0
          @projects.each do |p|
	  %>
		   <%=link_to p.name,:controller=>'project',:action=>'show',:id=>p.id%> (<%=sprintf('%0.2f',(h = p.hours(@user.id)))%>)
	      <% total += h %>
	  <%end%>
	  <hr>
	  <%='Total hours'.t%>
		<%=sprintf("%0.2f",total)%>
	</td>
  </tr>
